import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '@/views/Layout/index.vue'
import Login from '@/views/Login/index.vue'
import Home from '@/views/Home/index.vue'
import Regiset from '@/views/regiset/index.vue'
import Ignore from '@/views/regiset/ignorePassword.vue'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    component: Layout,
    children: [
      {
        path: '',
        component: Home
      }
    ]
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/regiset',
    component: Regiset
  },
  {
    path: '/ignore',
    component: Ignore
  }
]

const router = new VueRouter({
  routes
})

export default router
